/**
 * render column overwrite querylist4ext.js
 * 
 * @param {}
 *            value
 * @param {}
 *            cellmeta
 * @param {}
 *            record
 * @param {}
 *            rowIndex
 * @param {}
 *            columnIndex
 * @param {}
 *            store
 * @return {}
 */
function renderHeader(value, cellmeta, record, rowIndex, columnIndex, store) {
	var fieldName = Ext.getCmp(querykey).getColumnModel()
			.getDataIndex(columnIndex);
	if (fieldName == 'OPEN') {
		var resultString = String
				.format(
						'<b><a href="'
								+ context
								+ '/system/objectcreator.do?method=edit&key=APP_QTFDJ&id={0}">打开</a></b>',
						record.data.ID, value);

		return resultString;
	} else if (fieldName == 'ADDLFDJ') {
		resultString = String.format(
							'<b><a href="javascript:void(0)">新建</a></b>',
							record.data.ID, value);

		return resultString;
	} else if (fieldName == 'SJGZ') {
		resultString = String.format(
							'<b><a href="javascript:showLogWin(\'{0}\')">查看</a></b>',
							record.data.ID, value);

		return resultString;
	}else if (fieldName == 'XFTIME' || fieldName == 'XJTIME') {

		return formatDate(value);
		
	} else if (fieldName == 'LFSTATUS') {
		if (value == '0') {
			return '否';
		} else if (value == '1') {
			return '是';
		}
	} else if (fieldName == 'LFTYPE') {
		if (value == '0') {
			return '街乡';
		} else if (value == '1') {
			return '区';
		}
	}else if (fieldName == 'BLSTATUS') {
		if (value == '0') {
			return "<span>待处理</span>&nbsp;<img src='"
				+ context
				+ "/app/lf/images/warning.png'  style='margin-bottom:-5px'/>" ;
		} else if (value == '1') {
			return '自处理';
		} else if (value == '2') {
			return '科室办理';
		} else if (value == '3') {
			return '上报处理';
		} else if (value == '-1') {
			return '未予办理';
		}
	}
	return value;
}